{include file="public/layout" /}
{include file="gzh/header" /}

<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-10" style="min-width:auto;">

    <div class="flexigrid">
        <div class="mDiv pt0">
            <form class="navbar-form form-inline" action=" {:url('Gzh/selcet_material_list')}" method="get" onsubmit="layer_loading('正在处理');">
                {$searchform.hidden|default=''}
                <div class="sDiv">
                    <div class="sDiv2">
                        <input type="hidden" name="type" value="{$Request.param.type}">
                        <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="标题搜索...">
                        <input type="submit" class="btn" value="搜索">
                        <i class="iconfont e-sousuo"></i>
                    </div>
                </div>
            </form>
        </div>
        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                        <tr>
                            <th abbr="article_title" axis="col3">
                                <div style="text-align: left; padding-left: 10px;">标题</div>
                            </th>
                            <th abbr="article_time" axis="col6" class="w160">
                                <div class="tc">更新时间</div>
                            </th>
                            <th axis="col1" class="w150">
                                <div class="tc">操作</div>
                            </th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table style="width: 100%">
                    <tbody>
                        {volist name="$list" id="vo"}
                        <tr class="trSelected">
                            <td style="width: 100%;">
                                <div class="flex-row pl10">
                                    {eq name="$Request.param.type" value="1"}
                                        {$vo.intro}
                                    {else/}
                                        {notempty name="$vo.litpic"}
                                        <img width="30" height="30" src="{$vo.litpic}">
                                        {/notempty}
                                        &nbsp;&nbsp;{$vo.title}
                                    {/eq}
                                </div>
                                <!-- {volist name="$vo.child" id="voo"}
                                <p class="flex-row pl10"> 
                                <img width="30" height="30" src="{$voo.litpic}">
                                &nbsp;&nbsp;{$voo.title}
                                </p>
                                {/volist} -->
                            </td>
                            <td>
                                <div class="w160 tc"> {$vo.add_time|date='Y-m-d H:i:s',###} </div>
                            </td>
                            <td class="operation">
                                <div class="w150 tc">
                                    {eq name="$Request.param.type" value="1"}
                                        <a href="javascript:void(0);" data-id="{$vo.id}" data-intro="{$vo.intro}" onclick="parent.selected(this, 'TEXT')" class="btn blue">选择</a>
                                    {else/}
                                        <a href="javascript:void(0);" data-id="{$vo.id}" data-litpic="{$vo.litpic}" data-title="{$vo.title}" onclick="parent.selected(this, 'PIC')" class="btn blue">选择</a>
                                    {/eq}
                                </div>
                            </td>
                        </tr>
                        {/volist}
                    </tbody>
                </table>
            </div>
            <div class="iDiv" style="display: none;"></div>
        </div>
        <div class="tDiv">
            <div class="tDiv2">
                {$pageStr}
            </div>
            <div style="clear:both"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid > table>tbody >tr').click(function(){
            $(this).toggleClass('trSelected');
        });

        // 点击刷新数据
        $('.fa-refresh').click(function(){
            location.href = location.href;
        });
    });

</script>
{include file="public/footer" /}